import App from './App'
import Vue from 'vue'


//请求方法
import request from './utils/request.js'
Vue.prototype.$post = request.POST;
Vue.prototype.$get = request.GET;

Vue.prototype.$toast = (msg) => {
	uni.showToast({
		title: msg,
		icon: 'none'
	})
}

Vue.prototype.$loading = (msg) => {
	uni.showLoading({
		title: msg,
		mask: true
	})
}


Vue.config.productionTip = false

export const eventBus = new Vue();

App.mpType = 'app'
const app = new Vue({
	...App
})
app.$mount()